package second;

import pojo.User;

/**
 * @author: ZhouBert
 * @date: 2020/7/24
 * @description:
 */
public class UserServiceImpl implements UserService{

	private UserDAO userDAO = new UserDAOImpl();

	@Override
	public void register(User user) {
		userDAO.save(user);
	}

	@Override
	public void login(String name, String password) {
		userDAO.queryUser(name, password);
	}
}
